package p270jp.pxv.android.legacy.model;

import android.support.p024v4.media.C0261e;
import java.io.Serializable;
import p325m0.C4721b;
import p325m0.MutabilityOwnership;

/* compiled from: PixivMutedUser.kt */
/* renamed from: jp.pxv.android.legacy.model.PixivMutedUser */
/* loaded from: classes2.dex */
public final class PixivMutedUser implements Serializable, MuteSettingsListItem {
    private final boolean isPremiumSlot;
    private final PixivUser user;

    public PixivMutedUser(PixivUser pixivUser, boolean z) {
        MutabilityOwnership.m3745m(pixivUser, "user");
        this.user = pixivUser;
        this.isPremiumSlot = z;
    }

    public static /* synthetic */ PixivMutedUser copy$default(PixivMutedUser pixivMutedUser, PixivUser pixivUser, boolean z, int i, Object obj) {
        if ((i & 1) != 0) {
            pixivUser = pixivMutedUser.user;
        }
        if ((i & 2) != 0) {
            z = pixivMutedUser.isPremiumSlot;
        }
        return pixivMutedUser.copy(pixivUser, z);
    }

    public final PixivUser component1() {
        return this.user;
    }

    public final boolean component2() {
        return this.isPremiumSlot;
    }

    public final PixivMutedUser copy(PixivUser pixivUser, boolean z) {
        MutabilityOwnership.m3745m(pixivUser, "user");
        return new PixivMutedUser(pixivUser, z);
    }

    @Override // java.lang.Object
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PixivMutedUser)) {
            return false;
        }
        PixivMutedUser pixivMutedUser = (PixivMutedUser) obj;
        return MutabilityOwnership.m3749h(this.user, pixivMutedUser.user) && this.isPremiumSlot == pixivMutedUser.isPremiumSlot;
    }

    public final PixivUser getUser() {
        return this.user;
    }

    @Override // java.lang.Object
    public int hashCode() {
        int hashCode = this.user.hashCode() * 31;
        boolean z = this.isPremiumSlot;
        if (z) {
            z = true;
        }
        int i = z ? 1 : 0;
        int i2 = z ? 1 : 0;
        int i3 = z ? 1 : 0;
        return hashCode + i;
    }

    public final boolean isPremiumSlot() {
        return this.isPremiumSlot;
    }

    @Override // java.lang.Object
    public String toString() {
        StringBuilder c = C0261e.m12042c("PixivMutedUser(user=");
        c.append(this.user);
        c.append(", isPremiumSlot=");
        return C4721b.m3753a(c, this.isPremiumSlot, ')');
    }
}
